package com.nulldev.util.web.nTubeExtensions.yte_for_archives.demo;

import com.nulldev.util.JVM.JVM;
import com.nulldev.util.concurrency.threadIt.v4.emapi.ExecutorManager;
import com.nulldev.util.concurrency.threadIt.v4.emapi.uft.Executable;
import com.nulldev.util.data.Arrays.maps.FastMaps;
import com.nulldev.util.web.YouTubeExtractor.extractors.IYouTubeExtractorConstants;
import com.nulldev.util.web.YouTubeExtractor.video.ExtractedVideo;
import com.nulldev.util.web.nTubeExtensions.yte_for_archives.YTEArchiveExtractor;

public class NTubeArchiveDemo {

	public static void main(String[] args) {
		final YTEArchiveExtractor yte = new YTEArchiveExtractor();
		final Executable<ExtractedVideo> f = yte.generateTask(FastMaps.fixedUniMap(new Object[][]
			{
					{ IYouTubeExtractorConstants.MAP_TYPE_VIDEO_ID, "hXKcojj7Vk4" },
					{ YTEArchiveExtractor.MAP_TYPE_NON_STANDARD_ARCHIVE_DATE, "20140227065811" } }));
		ExecutorManager.get().asyncSubmit(f);
		JVM.println("result: " + f.waitTillCompletion());
	}

}
